#include "btree.hpp"

int main(void)
{
    BTree testTree;
    testTree.BuildTree("(A(B(,C(D)),E(,F(G(H,K)))))");
	testTree.PreorderTraverse();
	cout<< "\n";
	testTree.InorderTraverse();
	cout<<"\n";
	testTree.PostorderTraverse();
	cout<<"\n";
	
	char str[50] = {0};
	testTree.ConvertTo(str);
	cout<< str <<endl;
	
    system("pause");
}
